import Vue from 'vue'
import Vuex from 'vuex'
import addTeacher from './modules/addTeacher'
import login from './modules/login'
import CreatePersistedstate from "vuex-persistedstate";

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    addTeacher,
    login,
  },
  plugins: [
    CreatePersistedstate({
      key: "info",
      paths: ['login'],
    }),
  ],
})
